package com.epam.mentoring.music.ui;

import org.apache.commons.io.FileUtils;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;

import java.io.File;

import static org.junit.Assert.assertEquals;

public class HomePageLinks {
    private static WebDriver driver;

    @BeforeClass
    public static void setUp() throws Exception{
        System.setProperty("webdriver.chrome.driver", "chromedriver.exe");
        driver = new ChromeDriver();
        driver.get("http://localhost:4567/");
    }

    @AfterClass
    public static void tearDown() throws Exception{
        driver.quit();
        //exit();
    }

    @Test
    public void TestLinks(){
        WebElement HomeToAboutLink = driver.findElement(By.linkText("About"));
        WebElement HomeToArtistsLink = driver.findElement(By.linkText("Artists"));
        WebElement HomeToTracksLink = driver.findElement(By.linkText("Tracks"));
    }
}
